package org.example.dao.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 动态展示配置表
 *
 * @author yang jun
 * @since 2024-05-21
 */
@Data
@Accessors(chain = true)
@TableName(value = "dynamic_view_config", autoResultMap = true)
@ApiModel(value = "动态展示配置表", description = "动态展示配置表")
public class DynamicViewConfig implements Serializable {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer groupId;

    @ApiModelProperty("子类型 0-pop提交，1-opt发货，2-待付款，3-已付款，4-竞得，5-新增POP店数，6-竞得（项目类），7-成交，8-询价质检")
    private Integer subType;

    private String subTypeName;

    private String category;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONObject extra;

    @ApiModelProperty("下钻表")
    private String drillTable;

    @ApiModelProperty("下钻维度")
    private String drillDimension;

    @ApiModelProperty("顺序")
    private Integer sortOrder;

    @ApiModelProperty("-1：删除，0-正常")
    private Integer status;
}